#!/usr/bin/env python3
# -*- coding: utf-8 -*-

class MyObject(object):
    def __init__(self):
        """

        :rtype: object
        """
        self.x = 9

    def power(self):
        return self.x * self.xs


obj = MyObject()
print(hasattr(obj, 'x'))
print(obj.x)
print(getattr(obj, 'z', 404))